<template>
  <svg class="svg-icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg">
    <use :xlink:href="`#icon-${icon_name}`" />
  </svg>
</template>
<script lang="ts" setup>
defineProps<{
  // icon文件名
  icon_name: string;
}>();
</script>
<style lang="scss" scoped>
.svg-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}
</style>
